<?php
/**
 * the basic blib exception
 * @uses Exception
 * @author bbqq <toughgamer@gmail.com>
 * @package com.blib.core
 * @copyright bbqq qstufie.com
 */
class Blib_Exception extends Exception
{
    /**
     * the to string function
     * totally revamped :)
     * @return string
     */
    public function __toString()
    {
        // catch by ob get contents
        ob_start();
        $this->dump();
        return ob_get_clean();

    }// end __toString


    /**
     * the dump function
     * that uses Blib::dump to do the job
     * @param bool $output if true output the string, otherwise print it
     * @return mixed
     */
    public function dump()
    {
        Blib::dump($this);

    }// end dump

} // end Blib_Exception
?>